repo: Don't put remote refs in the summary file
authorColin Walters <walters@verbum.org>
Tue, 1 Nov 2016 18:17:57 +0000 (14:17 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 4 Nov 2016 15:16:09 +0000 (15:16 +0000)
commit730f7238699b932c90423a63c6720a12643a76b2
tree1604c9447769f4694b5c9b68a60b5a0d90961122
parentf0e493bf2992d752ec3cf517542e60d9ea376be4
repo: Don't put remote refs in the summary file

I was doing a chain of mirroring like A -> B -> C

And repo B had A as a remote.  When I added B as
a remote to C, the summary file of B had a ref
upstream:foo/bar/baz, which caused all pulls from
B to C to fail, since the summary file is only
expected to have refs, not refspecs.

Closes: https://github.com/ostreedev/ostree/issues/561
Closes: #565
Approved by: jlebon
src/libostree/ostree-repo.c